<template>
    <div>
        <input type="text" placeholder="指定年份,格式为YYYY,如:2015" v-model="dater"><br>
        <button @click="get_date_message()">获取当天详细信息</button>
    </div>
</template>
<script>
import axios from 'axios';

export default {
    data() {
        return {
            dater: "",
        }
    },
    created() {
    },
    mounted() {
    },
    computed: {
    },
    methods: {
        get_date_message() {
            axios({
                url:"http://v.juhe.cn/calendar/year",
                method:"get",
                data: this.dater,
            })
                .then(res => {
                    console.log(res);
                })
                .catch(e => {
                    console.log(e);
                })
        }
    },
}
</script>
<style lang="less" scoped></style>
